import React, { Component } from 'react'
import { connect } from 'react-redux'
import axios from 'axios'


class top extends Component {
  constructor(props) {
    super(props)
    this.state = {
     list:[],
    }
  }
  ck = () => {
    this.props.ck1("用户列表")
  }

  render () {
    this.ck()
    return (
      <div>
         这是
      </div>
    )
  }
}
function mapStateToProps (state) {
  return {
  
  }
}
function mapDispatchToProps (dispatch) {
  return {
      ck1(v){
            dispatch({type:"url",d:{v}})
        }
  }
}
export default connect(mapStateToProps, mapDispatchToProps)(top)